﻿using System;
using Cos.Core.Module;

namespace Cos.Module.Security.Admin
{
    public class ShortCosPluginMsg
    {
        /**
         * The internal name of a plugin is mapped with a Web Admin Module defined under the folder modules of the Admin Web
         * site.
         */
        private String internalName;

        /**
         * Default ctor
         */
        public ShortCosPluginMsg()
        {
        }

        /**
         * Ctor from a {@link CosPlugin}
         * 
         * @param plugin The {@link CosPlugin}
         */
        public ShortCosPluginMsg(IModule plugin)
        {
            internalName = plugin.InternalName;
        }

        /**
         * @return the internalName
         */
        public String InternalName
        {
            get { return internalName; }
            set { internalName = value; }
        }


    }
}